package behaviorType.strategy;

import behaviorType.strategy.impl.StrategyOneImpl;
import behaviorType.strategy.impl.StrategyThreeImpl;
import behaviorType.strategy.impl.StrategyTwoImpl;

public class Main {

    public static void main(String[] args) {
        IStrategy iStrategy1 = new StrategyOneImpl();
        IStrategy iStrategy2 = new StrategyTwoImpl();
        IStrategy iStrategy3 = new StrategyThreeImpl();

        StrategySolve strategySolve = new StrategySolve(iStrategy1);
        strategySolve.solve();

        strategySolve.changeStrategy(iStrategy2);
        strategySolve.solve();

        strategySolve.changeStrategy(iStrategy3);
        strategySolve.solve();
    }
}
